import time


from redis_push.red import redis_conn,filter_push_redis

url_list = [
    {'category': 'CLOTHING>>activewear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/activewear',
     'sex': 'women'},
    {'category': 'CLOTHING>>all-in-ones', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/all-in-ones',
     'sex': 'women'},
    {'category': 'CLOTHING>>beachwear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/beachwear',
     'sex': 'women'},
    {'category': 'CLOTHING>>bridal', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/bridal',
     'sex': 'women'},
    {'category': 'CLOTHING>>coats', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/coats',
     'sex': 'women'},
    {'category': 'CLOTHING>>denim', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/denim',
     'sex': 'women'},
    {'category': 'CLOTHING>>dresses', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/dresses',
     'sex': 'women'},
    {'category': 'CLOTHING>>jackets', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/jackets',
     'sex': 'women'},
    {'category': 'CLOTHING>>jeans', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/jeans',
     'sex': 'women'},
    {'category': 'CLOTHING>>knitwear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/knitwear',
     'sex': 'women'},
    {'category': 'CLOTHING>>lingerie', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/lingerie',
     'sex': 'women'},
    {'category': 'CLOTHING>>loungewear', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/loungewear',
     'sex': 'women'},
    {'category': 'CLOTHING>>shorts', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/shorts',
     'sex': 'women'}, {'category': 'CLOTHING>>ski-clothing',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/ski-clothing', 'sex': 'women'},
    {'category': 'CLOTHING>>skirts', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/skirts',
     'sex': 'women'},
    {'category': 'CLOTHING>>suits', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/suits',
     'sex': 'women'},
    {'category': 'CLOTHING>>tops', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/tops',
     'sex': 'women'},
    {'category': 'CLOTHING>>trousers', 'url': 'https://www.matchesfashion.com/intl/womens/shop/clothing/trousers',
     'sex': 'women'}, {'category': 'CLOTHING>>clothing',
                       'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/clothing',
                       'sex': 'women'}, {'category': 'CLOTHING>>for-the-outdoors',
                                         'url': 'https://www.matchesfashion.com/intl/womens/lists/for-the-outdoors',
                                         'sex': 'women'},
    {'category': 'CLOTHING>>for-skiing', 'url': 'https://www.matchesfashion.com/intl/womens/lists/for-skiing',
     'sex': 'women'}, {'category': 'CLOTHING>>wardrobe-foundations',
                       'url': 'https://www.matchesfashion.com/intl/womens/lists/wardrobe-foundations', 'sex': 'women'},
    {'category': 'CLOTHING>>wedding-guest', 'url': 'https://www.matchesfashion.com/intl/womens/lists/wedding-guest',
     'sex': 'women'}, {'category': 'CLOTHING>>dressing-for-sun',
                       'url': 'https://www.matchesfashion.com/intl/womens/lists/dressing-for-sun', 'sex': 'women'},
    {'category': 'CLOTHING>>modern-workwear', 'url': 'https://www.matchesfashion.com/intl/womens/lists/modern-workwear',
     'sex': 'women'},
    {'category': 'SHOES>>boots', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/boots', 'sex': 'women'},
    {'category': 'SHOES>>espadrilles', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/espadrilles',
     'sex': 'women'},
    {'category': 'SHOES>>flats', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/flats', 'sex': 'women'},
    {'category': 'SHOES>>heels', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/heels', 'sex': 'women'},
    {'category': 'SHOES>>sandals', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/sandals',
     'sex': 'women'},
    {'category': 'SHOES>>sneakers', 'url': 'https://www.matchesfashion.com/intl/womens/shop/shoes/sneakers',
     'sex': 'women'},
    {'category': 'SHOES>>shoes', 'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/shoes',
     'sex': 'women'},
    {'category': 'SHOES>>shoes', 'url': 'https://www.matchesfashion.com/intl/womens/lists/coming-soon/shoes',
     'sex': 'women'},
    {'category': 'SHOES>>shoes', 'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives/shoes',
     'sex': 'women'},
    {'category': 'BAGS>>backpacks', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/backpacks',
     'sex': 'women'},
    {'category': 'BAGS>>beach-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/beach-bags',
     'sex': 'women'},
    {'category': 'BAGS>>belt-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/belt-bags',
     'sex': 'women'},
    {'category': 'BAGS>>bucket-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/bucket-bags',
     'sex': 'women'},
    {'category': 'BAGS>>clutch-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/clutch-bags',
     'sex': 'women'},
    {'category': 'BAGS>>cross-body-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/cross-body-bags',
     'sex': 'women'},
    {'category': 'BAGS>>evening-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/evening-bags',
     'sex': 'women'},
    {'category': 'BAGS>>travel-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/travel-bags',
     'sex': 'women'},
    {'category': 'BAGS>>shoulder-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/shoulder-bags',
     'sex': 'women'},
    {'category': 'BAGS>>top-handle-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/top-handle-bags',
     'sex': 'women'},
    {'category': 'BAGS>>tote-bags', 'url': 'https://www.matchesfashion.com/intl/womens/shop/bags/tote-bags',
     'sex': 'women'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/bags',
     'sex': 'women'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/womens/lists/coming-soon/bags',
     'sex': 'women'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives/bags',
     'sex': 'women'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/womens/lists/wardrobe-foundations/bags',
     'sex': 'women'},
    {'category': 'ACCESSORIES>>belts', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/belts',
     'sex': 'women'}, {'category': 'ACCESSORIES>>card-holders',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/card-holders',
                       'sex': 'women'}, {'category': 'ACCESSORIES>>cosmetic-cases',
                                         'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/cosmetic-cases',
                                         'sex': 'women'},
    {'category': 'ACCESSORIES>>glasses', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/glasses',
     'sex': 'women'},
    {'category': 'ACCESSORIES>>gloves', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/gloves',
     'sex': 'women'}, {'category': 'ACCESSORIES>>hair-accessories',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/hair-accessories',
                       'sex': 'women'},
    {'category': 'ACCESSORIES>>hats', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/hats',
     'sex': 'women'},
    {'category': 'ACCESSORIES>>keyrings', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/keyrings',
     'sex': 'women'},
    {'category': 'ACCESSORIES>>scarves', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/scarves',
     'sex': 'women'},
    {'category': 'ACCESSORIES>>socks', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/socks',
     'sex': 'women'}, {'category': 'ACCESSORIES>>sunglasses',
                       'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/sunglasses', 'sex': 'women'},
    {'category': 'ACCESSORIES>>technology',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/technology', 'sex': 'women'},
    {'category': 'ACCESSORIES>>travel-accessories',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/travel-accessories', 'sex': 'women'},
    {'category': 'ACCESSORIES>>wallets', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/wallets',
     'sex': 'women'},
    {'category': 'ACCESSORIES>>watches', 'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/watches',
     'sex': 'women'}, {'category': 'ACCESSORIES>>accessories',
                       'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month/accessories',
                       'sex': 'women'}, {'category': 'ACCESSORIES>>accessories',
                                         'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives/accessories',
                                         'sex': 'women'}, {'category': 'ACCESSORIES>>accessories',
                                                           'url': 'https://www.matchesfashion.com/intl/womens/lists/wardrobe-foundations/accessories',
                                                           'sex': 'women'}, {'category': 'ACCESSORIES>>fine-jewellery',
                                                                             'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery',
                                                                             'sex': 'women'},
    {'category': 'ACCESSORIES>>fine-anklets',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/fine-anklets', 'sex': 'women'},
    {'category': 'ACCESSORIES>>bracelets',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/bracelets', 'sex': 'women'},
    {'category': 'ACCESSORIES>>earrings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/earrings', 'sex': 'women'},
    {'category': 'ACCESSORIES>>necklaces',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/necklaces', 'sex': 'women'},
    {'category': 'ACCESSORIES>>rings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/rings', 'sex': 'women'},
    {'category': 'ACCESSORIES>>fine-watches',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/fine-jewellery/fine-watches', 'sex': 'women'},
    {'category': 'ACCESSORIES>>jewellery',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery', 'sex': 'women'},
    {'category': 'ACCESSORIES>>bracelets',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/bracelets', 'sex': 'women'},
    {'category': 'ACCESSORIES>>brooches',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/brooches', 'sex': 'women'},
    {'category': 'ACCESSORIES>>earrings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/earrings', 'sex': 'women'},
    {'category': 'ACCESSORIES>>necklaces',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/necklaces', 'sex': 'women'},
    {'category': 'ACCESSORIES>>rings',
     'url': 'https://www.matchesfashion.com/intl/womens/shop/accessories/jewellery/rings', 'sex': 'women'},
    {'category': 'JUST IN>>just-in-this-month',
     'url': 'https://www.matchesfashion.com/intl/womens/just-in/just-in-this-month', 'sex': 'women'},
    {'category': 'JUST IN>>coming-soon', 'url': 'https://www.matchesfashion.com/intl/womens/lists/coming-soon',
     'sex': 'women'},
    {'category': 'JUST IN>>exclusives', 'url': 'https://www.matchesfashion.com/intl/womens/lists/exclusives',
     'sex': 'women'},
    {'category': 'CLOTHING>>activewear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/activewear',
     'sex': 'men'},
    {'category': 'CLOTHING>>blazers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/blazers',
     'sex': 'men'},
    {'category': 'CLOTHING>>coats', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/coats',
     'sex': 'men'},
    {'category': 'CLOTHING>>denim', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/denim',
     'sex': 'men'}, {'category': 'CLOTHING>>coats-and-jackets',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/coats-and-jackets', 'sex': 'men'},
    {'category': 'CLOTHING>>jeans', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/jeans',
     'sex': 'men'},
    {'category': 'CLOTHING>>knitwear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/knitwear',
     'sex': 'men'},
    {'category': 'CLOTHING>>loungewear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/loungewear',
     'sex': 'men'},
    {'category': 'CLOTHING>>polo-shirts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/polo-shirts',
     'sex': 'men'}, {'category': 'CLOTHING>>casual-shirts',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/casual-shirts', 'sex': 'men'},
    {'category': 'CLOTHING>>shorts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/shorts',
     'sex': 'men'},
    {'category': 'CLOTHING>>suits', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/suits',
     'sex': 'men'},
    {'category': 'CLOTHING>>sweats', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/sweats',
     'sex': 'men'},
    {'category': 'CLOTHING>>swimwear', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/swimwear',
     'sex': 'men'},
    {'category': 'CLOTHING>>t-shirts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/t-shirts',
     'sex': 'men'},
    {'category': 'CLOTHING>>trousers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/trousers',
     'sex': 'men'}, {'category': 'CLOTHING>>underwear-and-nightwear',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/clothing/underwear-and-nightwear',
                     'sex': 'men'}, {'category': 'CLOTHING>>just-in-this-month',
                                     'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month',
                                     'sex': 'men'}, {'category': 'CLOTHING>>the-activewear-edit',
                                                     'url': 'https://www.matchesfashion.com/intl/mens/lists/the-activewear-edit',
                                                     'sex': 'men'},
    {'category': 'CLOTHING>>eveningwear', 'url': 'https://www.matchesfashion.com/intl/mens/lists/eveningwear',
     'sex': 'men'}, {'category': 'CLOTHING>>seasonal-must-haves',
                     'url': 'https://www.matchesfashion.com/intl/mens/lists/seasonal-must-haves', 'sex': 'men'},
    {'category': 'CLOTHING>>wardrobe-foundations',
     'url': 'https://www.matchesfashion.com/intl/mens/lists/wardrobe-foundations', 'sex': 'men'},
    {'category': 'CLOTHING>>modern-workwear', 'url': 'https://www.matchesfashion.com/intl/mens/lists/modern-workwear',
     'sex': 'men'},
    {'category': 'CLOTHING>>dressing-for-sun', 'url': 'https://www.matchesfashion.com/intl/mens/lists/dressing-for-sun',
     'sex': 'men'},
    {'category': 'SHOES>>boots', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/boots', 'sex': 'men'},
    {'category': 'SHOES>>espadrilles', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/espadrilles',
     'sex': 'men'},
    {'category': 'SHOES>>loafers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/loafers', 'sex': 'men'},
    {'category': 'SHOES>>sandals', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sandals', 'sex': 'men'},
    {'category': 'SHOES>>slippers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/slippers',
     'sex': 'men'},
    {'category': 'SHOES>>dress-shoes', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/dress-shoes',
     'sex': 'men'},
    {'category': 'SHOES>>sneakers', 'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers',
     'sex': 'men'},
    {'category': 'SHOES>>shoes', 'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/shoes',
     'sex': 'men'}, {'category': 'SHOES>>sneakers',
                     'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/shoes/sneakers',
                     'sex': 'men'},
    {'category': 'SHOES>>icon-trainers', 'url': 'https://www.matchesfashion.com/intl/mens/lists/icon-trainers',
     'sex': 'men'}, {'category': 'SHOES>>high-top-sneakers',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers/high-top-sneakers',
                     'sex': 'men'}, {'category': 'SHOES>>low-top-sneakers',
                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers/low-top-sneakers',
                                     'sex': 'men'}, {'category': 'SHOES>>slip-on-sneakers',
                                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/shoes/sneakers/slip-on-sneakers',
                                                     'sex': 'men'},
    {'category': 'BAGS>>backpacks', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/backpacks',
     'sex': 'men'},
    {'category': 'BAGS>>belt-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/belt-bags',
     'sex': 'men'},
    {'category': 'BAGS>>briefcases', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/briefcases',
     'sex': 'men'},
    {'category': 'BAGS>>cross-body-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/cross-body-bags',
     'sex': 'men'},
    {'category': 'BAGS>>hand-held-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/hand-held-bags',
     'sex': 'men'},
    {'category': 'BAGS>>tote-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/tote-bags',
     'sex': 'men'},
    {'category': 'BAGS>>travel-bags', 'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/travel-bags',
     'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/bags',
     'sex': 'men'},
    {'category': 'BAGS>>homeware', 'url': 'https://www.matchesfashion.com/intl/mens/designers/bottega-veneta/homeware',
     'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/burberry/bags', 'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/christian-louboutin/bags',
     'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/gucci/bags', 'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/loewe/bags', 'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/maison-margiela/bags',
     'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/paul-smith/bags',
     'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/prada/bags', 'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/saint-laurent/bags',
     'sex': 'men'},
    {'category': 'BAGS>>bags', 'url': 'https://www.matchesfashion.com/intl/mens/designers/valentino/bags',
     'sex': 'men'}, {'category': 'ACCESSORIES>>active-accessories',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/active-accessories',
                     'sex': 'men'},
    {'category': 'ACCESSORIES>>belts', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/belts',
     'sex': 'men'},
    {'category': 'ACCESSORIES>>caps', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/hats/caps',
     'sex': 'men'}, {'category': 'ACCESSORIES>>cufflinks-pins-and-clips',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/cufflinks-pins-and-clips',
                     'sex': 'men'},
    {'category': 'ACCESSORIES>>glasses', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/glasses',
     'sex': 'men'},
    {'category': 'ACCESSORIES>>gloves', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/gloves',
     'sex': 'men'},
    {'category': 'ACCESSORIES>>hats', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/hats',
     'sex': 'men'},
    {'category': 'ACCESSORIES>>key-rings', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/key-rings',
     'sex': 'men'}, {'category': 'ACCESSORIES>>pocket-squares',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/pocket-squares', 'sex': 'men'},
    {'category': 'ACCESSORIES>>scarves', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/scarves',
     'sex': 'men'},
    {'category': 'ACCESSORIES>>socks', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/socks',
     'sex': 'men'}, {'category': 'ACCESSORIES>>sunglasses',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/sunglasses', 'sex': 'men'},
    {'category': 'ACCESSORIES>>technology',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/technology', 'sex': 'men'},
    {'category': 'ACCESSORIES>>ties', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/ties',
     'sex': 'men'}, {'category': 'ACCESSORIES>>travel-accessories',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/travel-accessories',
                     'sex': 'men'},
    {'category': 'ACCESSORIES>>wallets', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/wallets',
     'sex': 'men'}, {'category': 'ACCESSORIES>>wash-bags',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/bags/travel-bags/wash-bags', 'sex': 'men'},
    {'category': 'ACCESSORIES>>accessories',
     'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month/accessories', 'sex': 'men'},
    {'category': 'ACCESSORIES>>gifts', 'url': 'https://www.matchesfashion.com/intl/mens/lists/gifts', 'sex': 'men'},
    {'category': 'ACCESSORIES>>jewellery', 'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery',
     'sex': 'men'}, {'category': 'ACCESSORIES>>bracelets',
                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/bracelets',
                     'sex': 'men'}, {'category': 'ACCESSORIES>>cufflinks',
                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/cufflinks',
                                     'sex': 'men'}, {'category': 'ACCESSORIES>>earrings',
                                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/earrings',
                                                     'sex': 'men'}, {'category': 'ACCESSORIES>>fine-jewellery',
                                                                     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/fine-jewellery',
                                                                     'sex': 'men'},
    {'category': 'ACCESSORIES>>necklaces',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/necklaces', 'sex': 'men'},
    {'category': 'ACCESSORIES>>rings',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/rings', 'sex': 'men'},
    {'category': 'ACCESSORIES>>watches',
     'url': 'https://www.matchesfashion.com/intl/mens/shop/accessories/jewellery/watches', 'sex': 'men'},
    {'category': 'JUST IN>>just-in-this-month',
     'url': 'https://www.matchesfashion.com/intl/mens/just-in/just-in-this-month', 'sex': 'men'},
    {'category': 'JUST IN>>seasonal-must-haves',
     'url': 'https://www.matchesfashion.com/intl/mens/lists/seasonal-must-haves', 'sex': 'men'}
]

for index, info in enumerate(url_list):
    task = {
        "jobId": index,
        'info': info,
        # 'code': url,
        'domain': 'matchesfashion'.upper(),
        'filename': 'main',
        'types': 'electronic_business',
        "scheduleTime": int(time.time() * 1000),
        "triggerChannel": 'SONIC_SPIDER',
    }
    result = filter_push_redis(redis_conn, f'{task["types"]}_{task["filename"]}_{task["domain"]}', task)
    # result = filter_push_redis(redis_shedana, f'{task["types"]}_{task["filename"]}_{task["domain"]}', task)
    print(result)
    input()